home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / marionettemadness.swf / scripts / __Packages / com / mosesSupposes / fuse / FuseItem.as < prev    next >
Text File  |  2007-10-01  |  63KB  |  1,594 lines

  1. class com.mosesSupposes.fuse.FuseItem
  2. {
  3.    static var registryKey = "fuseItem";
  4.    static var ADD_UNDERSCORES = true;
  5.    var _nPlaying = -1;
  6.    var _bStartSet = false;
  7.    var _bTrigger = false;
  8.    function FuseItem(id, o, fuseID)
  9.    {
  10.       com.mosesSupposes.fuse.FuseItem._ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
  11.       this._nItemID = id;
  12.       this._nFuseID = fuseID;
  13.       this._initObj = o;
  14.       this._aProfiles = [];
  15.       this._oElements = {aEvents:[]};
  16.       this._oTemps = {};
  17.       if(!(o instanceof Array))
  18.       {
  19.          o = [o];
  20.       }
  21.       var _loc19_ = _global.com.mosesSupposes.fuse.Fuse;
  22.       this._oTemps.outputLevel = _loc19_ == undefined ? _global.com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL : _loc19_.OUTPUT_LEVEL;
  23.       if(o.length == 1)
  24.       {
  25.          var _loc18_ = o[0];
  26.          var _loc12_ = _loc18_.action == undefined ? _loc18_ : _loc18_.action;
  27.          if(_loc12_.__buildMode != true && _loc12_.command != undefined)
  28.          {
  29.             this._oElements.command = _loc12_.command;
  30.             this._oElements.scope = _loc12_.scope;
  31.             this._oElements.args = _loc12_.args;
  32.             this._sImage = " Elements:[" + ("command" + (typeof _loc12_.command != "string" ? ", " : ":\"" + _loc12_.command + "\", "));
  33.             if(_loc12_.delay != undefined)
  34.             {
  35.                this._sImage += "delay, ";
  36.                this._oElements.delay = _loc12_.delay;
  37.             }
  38.             this._sImage = this._sImage.slice(0,-2) + "]";
  39.             if(_loc12_.func != undefined && this._oTemps.outputLevel > 0)
  40.             {
  41.                com.mosesSupposes.fuse.FuseKitCommon.error("113");
  42.             }
  43.             return undefined;
  44.          }
  45.       }
  46.       this._oTemps.sImgS = "";
  47.       this._oTemps.sImgE = "";
  48.       this._oTemps.sImgB = "";
  49.       this._oTemps.afl = 0;
  50.       this._oTemps.ael = 0;
  51.       this._oTemps.twDelayFlag = false;
  52.       this._oTemps.nActions = o.length;
  53.       this._oTemps.fuseProps = com.mosesSupposes.fuse.FuseKitCommon._fuseprops();
  54.       this._oTemps.cbProps = com.mosesSupposes.fuse.FuseKitCommon._cbprops();
  55.       this._oTemps.sUP = com.mosesSupposes.fuse.FuseKitCommon._underscoreable();
  56.       this._oTemps.sCT = com.mosesSupposes.fuse.FuseKitCommon._cts();
  57.       this._oTemps.bTriggerFound = false;
  58.       for(var _loc17_ in o)
  59.       {
  60.          var _loc3_ = o[_loc17_];
  61.          if(_loc3_.label != undefined && typeof _loc3_.label == "string")
  62.          {
  63.             this._oElements.label = _loc3_.label;
  64.          }
  65.          var _loc4_ = undefined;
  66.          var _loc8_ = Boolean(typeof _loc3_.action == "object");
  67.          if(_loc8_ == true)
  68.          {
  69.             var _loc7_ = !(_loc3_.action instanceof Array) ? [_loc3_.action] : _loc3_.action;
  70.             _loc4_ = {delay:_loc3_.delay,target:_loc3_.target,addTarget:_loc3_.addTarget,label:_loc3_.label,trigger:_loc3_.trigger};
  71.             for(var _loc15_ in _loc7_)
  72.             {
  73.                var _loc5_ = this.parseProfile(_loc7_[_loc15_],_loc4_);
  74.                if(_loc5_ != undefined)
  75.                {
  76.                   this._aProfiles.unshift(_loc5_);
  77.                }
  78.             }
  79.          }
  80.          else
  81.          {
  82.             _loc7_ = _loc3_;
  83.             _loc5_ = this.parseProfile(_loc7_,_loc4_);
  84.             if(_loc5_ != undefined)
  85.             {
  86.                this._aProfiles.unshift(_loc5_);
  87.             }
  88.          }
  89.       }
  90.       this._sImage = "";
  91.       var _loc16_ = "";
  92.       if(this._oTemps.afl > 0)
  93.       {
  94.          _loc16_ += this._oTemps.afl <= 1 ? "callback, " : this._oTemps.afl + " callbacks, ";
  95.       }
  96.       if(this._oElements.delay != undefined || this._oTemps.twDelayFlag == true)
  97.       {
  98.          _loc16_ += "delay, ";
  99.       }
  100.       if(this._oTemps.bTriggerFound == true)
  101.       {
  102.          _loc16_ += "trigger, ";
  103.       }
  104.       if(this._oTemps.ael > 0)
  105.       {
  106.          _loc16_ += this._oTemps.ael <= 1 ? "event, " : this._oTemps.ael + " events, ";
  107.       }
  108.       if(_loc16_ != "")
  109.       {
  110.          this._sImage += " Elements:[" + _loc16_.slice(0,-2) + "]";
  111.       }
  112.       if(this._oTemps.sImgS != "")
  113.       {
  114.          this._sImage += " StartProps:[" + this._oTemps.sImgS.slice(0,-2) + "]";
  115.       }
  116.       if(this._oTemps.sImgE != "")
  117.       {
  118.          this._sImage += " Props:[" + this._oTemps.sImgE.slice(0,-2) + "]";
  119.       }
  120.       if(this._oTemps.sImgB != "")
  121.       {
  122.          this._sImage += " Simple Syntax Props:[" + this._oTemps.sImgB.slice(0,-1) + "]";
  123.       }
  124.       if(this._sImage.slice(-2) == ", ")
  125.       {
  126.          this._sImage = this._sImage.slice(0,-2);
  127.       }
  128.       delete this._oTemps;
  129.    }
  130.    static function doTween()
  131.    {
  132.       for(var _loc3_ in arguments)
  133.       {
  134.          if(typeof arguments[_loc3_] == "object")
  135.          {
  136.             if(com.mosesSupposes.fuse.FuseItem._aInstances == undefined)
  137.             {
  138.                com.mosesSupposes.fuse.FuseItem._aInstances = new Array();
  139.             }
  140.             var _loc2_ = new com.mosesSupposes.fuse.FuseItem(com.mosesSupposes.fuse.FuseItem._aInstances.length,arguments[_loc3_],-1);
  141.             return _loc2_.startItem();
  142.          }
  143.       }
  144.    }
  145.    function get label()
  146.    {
  147.       return this._oElements.label;
  148.    }
  149.    function hasTriggerFired()
  150.    {
  151.       return this._bTrigger == true;
  152.    }
  153.    function getInitObj()
  154.    {
  155.       return this._initObj;
  156.    }
  157.    function getActiveTargets(targetList)
  158.    {
  159.       if(this._aTweens.length <= 0)
  160.       {
  161.          return targetList;
  162.       }
  163.       var _loc3_ = false;
  164.       for(var _loc5_ in this._aTweens)
  165.       {
  166.          for(var _loc4_ in targetList)
  167.          {
  168.             if(targetList[_loc4_] == this._aTweens[_loc5_].targ)
  169.             {
  170.                _loc3_ = true;
  171.                break;
  172.             }
  173.          }
  174.          if(_loc3_ == false)
  175.          {
  176.             targetList.unshift(this._aTweens[_loc5_].targ);
  177.          }
  178.       }
  179.       return targetList;
  180.    }
  181.    function toString()
  182.    {
  183.       return String(this._sID() + ":" + this._sImage);
  184.    }
  185.    function evalDelay(scope)
  186.    {
  187.       var _loc3_ = this._oElements.delay;
  188.       if(_loc3_ instanceof Function)
  189.       {
  190.          _loc3_ = _loc3_.apply(this._oElements.delayscope == undefined ? scope : this._oElements.delayscope);
  191.       }
  192.       if(typeof _loc3_ == "string")
  193.       {
  194.          _loc3_ = this.parseClock(String(_loc3_));
  195.       }
  196.       if(_global.isNaN(Number(_loc3_)) == true)
  197.       {
  198.          return 0;
  199.       }
  200.       return Number(_loc3_);
  201.    }
  202.    function startItem(targs, scope, duration, easing)
  203.    {
  204.       com.mosesSupposes.fuse.FuseItem._ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
  205.       var _loc11_ = _global.com.mosesSupposes.fuse.Fuse;
  206.       var _loc5_ = _loc11_ == undefined ? com.mosesSupposes.fuse.FuseItem._ZigoEngine.OUTPUT_LEVEL : _loc11_.OUTPUT_LEVEL;
  207.       if(this._oElements.command != null)
  208.       {
  209.          var _loc12_ = this._oElements.scope || scope;
  210.          var _loc10_ = !(this._oElements.command instanceof Function) ? String(this._oElements.command) : String(this._oElements.command.apply(_loc12_));
  211.          var _loc6_ = !(this._oElements.args instanceof Function) ? this._oElements.args : this._oElements.args.apply(_loc12_);
  212.          var _loc13_ = com.mosesSupposes.fuse.FuseKitCommon._validateFuseCommand(_loc10_,this._aProfiles.length > 0,_loc6_ != null && !(_loc6_ instanceof Array && _loc6_.length == 0),_loc5_,false);
  213.          if(_loc13_ == true)
  214.          {
  215.             this._nPlaying = 1;
  216.             if(!(_loc6_ instanceof Array))
  217.             {
  218.                _loc6_ = _loc6_ != null ? [_loc6_] : [];
  219.             }
  220.             this.dispatchRequest(String(_loc10_),_loc6_);
  221.          }
  222.          if(_loc13_ == false || _loc10_ == "setStartProps")
  223.          {
  224.             this.complete();
  225.          }
  226.          return null;
  227.       }
  228.       if(this._aTweens.length > 0)
  229.       {
  230.          this.stop();
  231.       }
  232.       com.mosesSupposes.fuse.FuseItem._ZigoEngine.addListener(this);
  233.       this._nPlaying = 2;
  234.       var _loc4_ = null;
  235.       if(this._aProfiles.length > 0)
  236.       {
  237.          if(com.mosesSupposes.fuse.FuseItem._ZigoEngine == undefined)
  238.          {
  239.             com.mosesSupposes.fuse.FuseKitCommon.error("112");
  240.          }
  241.          else
  242.          {
  243.             _loc4_ = this.doTweens(targs,scope,duration,easing,false,false);
  244.          }
  245.       }
  246.       this._nPlaying = 1;
  247.       var _loc3_ = this._oElements.aEvents;
  248.       for(var _loc9_ in _loc3_)
  249.       {
  250.          if(!(_loc4_ == null && this._aTweens.length > 0 && _loc3_[_loc9_].skipLevel == 2))
  251.          {
  252.             this.fireEvents(_loc3_[_loc9_],scope,_loc5_,targs);
  253.          }
  254.       }
  255.       if(_loc4_ == null && this._aTweens.length <= 0 && this._nPlaying == 1)
  256.       {
  257.          if(_loc5_ == 3)
  258.          {
  259.             com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " no tweens added - item done. [getTimer()=" + getTimer() + "]");
  260.          }
  261.          this.complete();
  262.       }
  263.       return _loc4_;
  264.    }
  265.    function stop()
  266.    {
  267.       var _loc2_ = this._nPlaying > -1;
  268.       this._nPlaying = -1;
  269.       if(_loc2_ == true)
  270.       {
  271.          this.onStop();
  272.       }
  273.       com.mosesSupposes.fuse.FuseItem._ZigoEngine.removeListener(this);
  274.    }
  275.    static function removeInstance(id)
  276.    {
  277.       com.mosesSupposes.fuse.FuseItem(com.mosesSupposes.fuse.FuseItem._aInstances[id]).destroy();
  278.       delete com.mosesSupposes.fuse.FuseItem._aInstances[id];
  279.    }
  280.    function onStop()
  281.    {
  282.       this._bStartSet = false;
  283.       for(var _loc3_ in this._aTweens)
  284.       {
  285.          var _loc2_ = this._aTweens[_loc3_];
  286.          _loc2_.targ.removeListener(this);
  287.          com.mosesSupposes.fuse.FuseItem._ZigoEngine.removeTween(_loc2_.targ,_loc2_.props);
  288.          delete this._aTweens[_loc3_];
  289.       }
  290.       delete this._aTweens;
  291.       this._bTrigger = false;
  292.    }
  293.    function evtSetStart(o)
  294.    {
  295.       if(this._sImage.indexOf("StartProps:") == -1 || o.curIndex == this._nItemID)
  296.       {
  297.          return undefined;
  298.       }
  299.       if(o.all != true)
  300.       {
  301.          var _loc3_ = false;
  302.          for(var _loc4_ in o.filter)
  303.          {
  304.             if(Number(o.filter[_loc4_]) == this._nItemID || String(o.filter[_loc4_]) == this._oElements.label)
  305.             {
  306.                _loc3_ = true;
  307.             }
  308.          }
  309.          if(_loc3_ == false)
  310.          {
  311.             return undefined;
  312.          }
  313.       }
  314.       this._nPlaying = 2;
  315.       this.doTweens(o.targs,o.scope,null,null,true,false);
  316.       this._nPlaying = -1;
  317.       this._bStartSet = true;
  318.    }
  319.    function pause(resume)
  320.    {
  321.       if(this._nPlaying == -1)
  322.       {
  323.          return undefined;
  324.       }
  325.       this._nPlaying = resume != true ? 0 : 1;
  326.       for(var _loc12_ in this._aTweens)
  327.       {
  328.          var _loc4_ = this._aTweens[_loc12_];
  329.          var _loc2_ = _loc4_.targ;
  330.          var _loc3_ = _loc4_.props;
  331.          if(resume == true)
  332.          {
  333.             var _loc5_ = [];
  334.             var _loc6_ = this._aTweens.length;
  335.             for(var _loc8_ in _loc3_)
  336.             {
  337.                if(com.mosesSupposes.fuse.FuseItem._ZigoEngine.isTweenPaused(_loc2_,_loc3_[_loc8_]) == false)
  338.                {
  339.                   _loc5_.push(_loc3_[_loc8_]);
  340.                }
  341.             }
  342.             if(_loc5_.length > 0)
  343.             {
  344.                this.onTweenEnd({__zigoID__:_loc4_.targZID,props:_loc5_,isResume:true});
  345.             }
  346.             if(this._aTweens.length == _loc6_)
  347.             {
  348.                _loc2_.addListener(this);
  349.                com.mosesSupposes.fuse.FuseItem._ZigoEngine.unpauseTween(_loc2_,_loc4_.props);
  350.             }
  351.          }
  352.          else
  353.          {
  354.             _loc2_.removeListener(this);
  355.             com.mosesSupposes.fuse.FuseItem._ZigoEngine.pauseTween(_loc2_,_loc4_.props);
  356.          }
  357.       }
  358.       if(resume == true && this._aTweens.length <= 0)
  359.       {
  360.          this.complete();
  361.       }
  362.       else if(resume == true)
  363.       {
  364.          com.mosesSupposes.fuse.FuseItem._ZigoEngine.addListener(this);
  365.       }
  366.       else
  367.       {
  368.          com.mosesSupposes.fuse.FuseItem._ZigoEngine.removeListener(this);
  369.       }
  370.    }
  371.    function fastForward(ignore, targs, scope)
  372.    {
  373.       if(this._nPlaying == 1)
  374.       {
  375.          for(var _loc4_ in this._aTweens)
  376.          {
  377.             var _loc3_ = this._aTweens[_loc4_];
  378.             var _loc2_ = _loc3_.targ;
  379.             _loc2_.removeListener(this);
  380.             com.mosesSupposes.fuse.FuseItem._ZigoEngine.ffTween(_loc2_,_loc3_.props,true);
  381.          }
  382.          return undefined;
  383.       }
  384.       if(this._nPlaying == 2)
  385.       {
  386.          com.mosesSupposes.fuse.FuseKitCommon.error("125",this._nItemID);
  387.       }
  388.       this._nPlaying = 2;
  389.       this.doTweens(targs,scope,null,null,false,true);
  390.       stop();
  391.    }
  392.    function destroy()
  393.    {
  394.       var _loc3_ = this._nPlaying > -1;
  395.       this._nPlaying = -1;
  396.       for(var _loc5_ in this._aTweens)
  397.       {
  398.          var _loc2_ = this._aTweens[_loc5_];
  399.          _loc2_.targ.removeListener(this);
  400.          if(_loc3_ == true)
  401.          {
  402.             com.mosesSupposes.fuse.FuseItem._ZigoEngine.removeTween(_loc2_.targ,_loc2_.props);
  403.          }
  404.          delete this._aTweens[_loc5_];
  405.       }
  406.       for(var _loc4_ in this)
  407.       {
  408.          delete this[_loc4_];
  409.       }
  410.    }
  411.    function dispatchRequest(type, args)
  412.    {
  413.       var _loc4_ = _global.com.mosesSupposes.fuse.Fuse.getInstance(this._nFuseID);
  414.       if(!(args instanceof Array) && args != null)
  415.       {
  416.          args = new Array(args);
  417.       }
  418.       Function(_loc4_[type]).apply(_loc4_,args);
  419.    }
  420.    function _sID()
  421.    {
  422.       var _loc3_ = undefined;
  423.       if(this._nFuseID == -1)
  424.       {
  425.          _loc3_ = "-One-off tween ";
  426.       }
  427.       else
  428.       {
  429.          _loc3_ = _global.com.mosesSupposes.fuse.Fuse.getInstance(this._nFuseID).getHandle();
  430.       }
  431.       _loc3_ += ">Item #" + String(this._nItemID);
  432.       if(this._oElements.label != undefined)
  433.       {
  434.          _loc3_ += " \"" + this._oElements.label + "\"";
  435.       }
  436.       return _loc3_;
  437.    }
  438.    function parseProfile(obj, aap)
  439.    {
  440.       var _loc40_ = undefined;
  441.       var _loc2_ = undefined;
  442.       var _loc8_ = undefined;
  443.       if(obj.__buildMode == true)
  444.       {
  445.          if(obj.command != undefined)
  446.          {
  447.             if(obj.command == "delay")
  448.             {
  449.                this._oElements.delay = obj.commandargs;
  450.             }
  451.             else if(obj.command == "trigger")
  452.             {
  453.                if(this._oTemps.bTriggerFound == false)
  454.                {
  455.                   this._oTemps.bTriggerFound = true;
  456.                   return {trigger:obj.commandargs,_doTimer:true};
  457.                }
  458.                if(this._oTemps.outputLevel > 0)
  459.                {
  460.                   com.mosesSupposes.fuse.FuseKitCommon.error("124",this._sID(),obj.commandargs);
  461.                }
  462.             }
  463.             else
  464.             {
  465.                this._oElements.command = obj.command;
  466.                this._oElements.args = obj.commandargs;
  467.             }
  468.          }
  469.          if(obj.func != undefined)
  470.          {
  471.             this._oTemps.afl = this._oTemps.afl + 1;
  472.             this._oElements.aEvents.unshift({scope:obj.scope,func:obj.func,args:obj.args});
  473.          }
  474.          if(obj.tweenargs != undefined)
  475.          {
  476.             this._oTemps.sImgB += obj.tweenargs[1].toString() + ",";
  477.             return obj;
  478.          }
  479.          return null;
  480.       }
  481.       var _loc4_ = {delay:(aap.delay == undefined ? obj.delay : aap.delay),ease:obj.ease,seconds:obj.seconds,event:obj.event,eventparams:obj.eventparams,skipLevel:(!(typeof obj.skipLevel == "number" && obj.skipLevel >= 0 && obj.skipLevel <= 2) ? com.mosesSupposes.fuse.FuseItem._ZigoEngine.SKIP_LEVEL : obj.skipLevel),roundResults:obj.roundResults,oSP:{},oEP:{},oAFV:{}};
  482.       var _loc22_ = aap.trigger == undefined ? obj.trigger : aap.trigger;
  483.       if(_loc22_ != undefined)
  484.       {
  485.          if(this._oTemps.bTriggerFound == false)
  486.          {
  487.             _loc4_.trigger = _loc22_;
  488.             this._oTemps.bTriggerFound = true;
  489.          }
  490.          else if(this._oTemps.outputLevel > 0)
  491.          {
  492.             com.mosesSupposes.fuse.FuseKitCommon.error("124",this._sID(),_loc22_);
  493.          }
  494.       }
  495.       if(_loc4_.delay == undefined)
  496.       {
  497.          _loc4_.delay = obj.startAt;
  498.       }
  499.       if(_loc4_.ease == undefined)
  500.       {
  501.          _loc4_.ease = obj.easing;
  502.       }
  503.       if(_loc4_.seconds == undefined)
  504.       {
  505.          _loc4_.seconds = obj.duration == undefined ? obj.time : obj.duration;
  506.       }
  507.       if(aap.target != undefined)
  508.       {
  509.          _loc4_.target = !(aap.target instanceof Array) ? [aap.target] : aap.target;
  510.       }
  511.       else if(obj.target != undefined)
  512.       {
  513.          _loc4_.target = !(obj.target instanceof Array) ? [obj.target] : obj.target;
  514.       }
  515.       if(obj.addTarget != undefined)
  516.       {
  517.          _loc4_.addTarget = !(obj.addTarget instanceof Array) ? [obj.addTarget] : obj.addTarget;
  518.       }
  519.       if(aap.addTarget != undefined)
  520.       {
  521.          if(_loc4_.addTarget == undefined)
  522.          {
  523.             _loc4_.addTarget = !(aap.addTarget instanceof Array) ? [aap.addTarget] : aap.addTarget;
  524.          }
  525.          else
  526.          {
  527.             _loc4_.addTarget = !(_loc4_.addTarget instanceof Array) ? new Array(_loc4_.addTarget).concat(aap.addTarget) : _loc4_.addTarget.concat(aap.addTarget);
  528.          }
  529.       }
  530.       var _loc15_ = false;
  531.       for(_loc2_ in obj)
  532.       {
  533.          var _loc9_ = obj[_loc2_];
  534.          if(this._oTemps.cbProps.indexOf("|" + _loc2_ + "|") > -1)
  535.          {
  536.             if(_loc2_ != "skipLevel")
  537.             {
  538.                _loc4_[_loc2_] = _loc9_;
  539.             }
  540.          }
  541.          else if(this._oTemps.fuseProps.indexOf("|" + _loc2_ + "|") > -1)
  542.          {
  543.             if(_loc2_ == "command" && this._oTemps.nActions > 1 && this._oTemps.outputLevel > 0)
  544.             {
  545.                com.mosesSupposes.fuse.FuseKitCommon.error("109",String(_loc9_),true);
  546.             }
  547.          }
  548.          else
  549.          {
  550.             if(typeof _loc9_ == "object")
  551.             {
  552.                var _loc11_ = !(_loc9_ instanceof Array) ? {} : [];
  553.                for(_loc8_ in _loc9_)
  554.                {
  555.                   _loc11_[_loc8_] = _loc9_[_loc8_];
  556.                }
  557.                _loc9_ = _loc11_;
  558.             }
  559.             var _loc3_ = undefined;
  560.             var _loc21_ = undefined;
  561.             if(_loc2_.indexOf("start") == 0)
  562.             {
  563.                _loc2_ = _loc2_.slice(6);
  564.                _loc3_ = _loc4_.oSP;
  565.             }
  566.             else
  567.             {
  568.                _loc3_ = _loc4_.oEP;
  569.             }
  570.             if(com.mosesSupposes.fuse.FuseItem.ADD_UNDERSCORES == true && this._oTemps.sUP.indexOf("|_" + _loc2_ + "|") > -1)
  571.             {
  572.                _loc2_ = "_" + _loc2_;
  573.             }
  574.             if(this._oTemps.sCT.indexOf("|" + _loc2_ + "|") > -1)
  575.             {
  576.                var _loc13_ = _loc2_ == "_tintPercent" && _loc3_.colorProp.p == "_tint";
  577.                var _loc12_ = _loc2_ == "_tint" && _loc3_.colorProp.p == "_tintPercent";
  578.                if(_loc3_.colorProp == undefined || _loc13_ == true || _loc12_ == true)
  579.                {
  580.                   if(_loc13_ == true)
  581.                   {
  582.                      _loc3_.colorProp = {p:"_tint",v:{tint:_loc3_.colorProp.v,percent:_loc9_}};
  583.                   }
  584.                   else if(_loc12_ == true)
  585.                   {
  586.                      _loc3_.colorProp = {p:"_tint",v:{tint:_loc9_,percent:_loc3_.colorProp.v}};
  587.                   }
  588.                   else
  589.                   {
  590.                      _loc3_.colorProp = {p:_loc2_,v:_loc9_};
  591.                   }
  592.                   _loc15_ = true;
  593.                }
  594.                else if(this._oTemps.outputLevel > 0)
  595.                {
  596.                   com.mosesSupposes.fuse.FuseKitCommon.error("115",this._sID(),_loc2_);
  597.                }
  598.             }
  599.             else if(_loc9_ != null)
  600.             {
  601.                if(_loc3_ == _loc4_.oEP && (obj.controlX != undefined || obj.controlY != undefined) && (_loc2_.indexOf("control") == 0 || _loc2_ == "_x" || _loc2_ == "_y"))
  602.                {
  603.                   if(_loc3_._bezier_ == undefined)
  604.                   {
  605.                      _loc3_._bezier_ = {};
  606.                   }
  607.                   if(_loc2_.indexOf("control") == 0)
  608.                   {
  609.                      _loc3_._bezier_[_loc2_] = _loc9_;
  610.                   }
  611.                   else
  612.                   {
  613.                      _loc3_._bezier_[_loc2_.charAt(1)] = _loc9_;
  614.                   }
  615.                }
  616.                else
  617.                {
  618.                   _loc3_[_loc2_] = _loc9_;
  619.                }
  620.                _loc15_ = true;
  621.             }
  622.          }
  623.       }
  624.       if(_loc15_ == false && (_loc4_.trigger != undefined || (_loc4_.delay != undefined || _loc4_.seconds != undefined) && (_loc4_.startfunc != undefined || _loc4_.updfunc != undefined || _loc4_.func != undefined && this._oTemps.nActions > 1)))
  625.       {
  626.          if(com.mosesSupposes.fuse.FuseItem._ZigoEngine != undefined)
  627.          {
  628.             if(_loc4_.func != undefined)
  629.             {
  630.                this._oTemps.afl = this._oTemps.afl + 1;
  631.             }
  632.             if(_loc4_.event != undefined)
  633.             {
  634.                this._oTemps.ael = this._oTemps.ael + 1;
  635.             }
  636.             _loc4_._doTimer = true;
  637.             if(_loc4_.delay != undefined)
  638.             {
  639.                this._oTemps.twDelayFlag = true;
  640.             }
  641.             return _loc4_;
  642.          }
  643.          com.mosesSupposes.fuse.FuseKitCommon.error("116");
  644.       }
  645.       if(_loc15_ == true)
  646.       {
  647.          var _loc17_ = _loc4_.oEP.colorProp != undefined;
  648.          var _loc7_ = 0;
  649.          while(_loc7_ < 2)
  650.          {
  651.             _loc3_ = _loc7_ != 0 ? _loc4_.oEP : _loc4_.oSP;
  652.             var _loc6_ = _loc7_ != 0 ? this._oTemps.sImgE : this._oTemps.sImgS;
  653.             var _loc10_ = _loc3_.colorProp.p;
  654.             if(_loc10_ != undefined)
  655.             {
  656.                _loc3_[_loc10_] = _loc3_.colorProp.v;
  657.                delete _loc3_.colorProp;
  658.             }
  659.             if((_loc3_._xscale != undefined || _loc3_._scale != undefined) && (_loc3_._width != undefined || _loc3_._size != undefined))
  660.             {
  661.                var _loc14_ = _loc3_._xscale == undefined ? "_scale" : "_xscale";
  662.                delete _loc3_[_loc14_];
  663.                if(this._oTemps.outputLevel > 0)
  664.                {
  665.                   com.mosesSupposes.fuse.FuseKitCommon.error("115",this._sID(),_loc14_);
  666.                }
  667.             }
  668.             if((_loc3_._yscale != undefined || _loc3_._scale != undefined) && (_loc3_._height != undefined || _loc3_._size != undefined))
  669.             {
  670.                _loc14_ = _loc3_._yscale == undefined ? "_scale" : "_yscale";
  671.                delete _loc3_[_loc14_];
  672.                if(this._oTemps.outputLevel > 0)
  673.                {
  674.                   com.mosesSupposes.fuse.FuseKitCommon.error("115",this._sID(),_loc14_);
  675.                }
  676.             }
  677.             for(_loc2_ in _loc3_)
  678.             {
  679.                if(_loc6_.indexOf(_loc2_ + ", ") == -1)
  680.                {
  681.                   _loc6_ += _loc2_ + ", ";
  682.                }
  683.                if(_loc3_ == _loc4_.oSP)
  684.                {
  685.                   if(_loc4_.oEP[_loc2_] == undefined && !(_loc2_ == _loc10_ && _loc17_ == true))
  686.                   {
  687.                      _loc4_.oAFV[_loc2_] = true;
  688.                      _loc4_.oEP[_loc2_] = [];
  689.                   }
  690.                }
  691.             }
  692.             _loc7_ != 0 ? (this._oTemps.sImgE = _loc6_) : (this._oTemps.sImgS = _loc6_);
  693.             _loc7_ = _loc7_ + 1;
  694.          }
  695.          return _loc4_;
  696.       }
  697.       if(_loc4_.delay != undefined && this._oTemps.nActions == 1)
  698.       {
  699.          this._oElements.delay = _loc4_.delay;
  700.          this._oElements.delayscope = _loc4_.scope;
  701.       }
  702.       if(_loc4_.event != undefined)
  703.       {
  704.          this._oTemps.ael = this._oTemps.ael + 1;
  705.          this._oElements.aEvents.unshift({scope:_loc4_.scope,e:_loc4_.event,ep:_loc4_.eventparams,skipLevel:_loc4_.skipLevel});
  706.       }
  707.       var _loc23_ = this._oElements.aEvents.length;
  708.       if(_loc4_.func != undefined)
  709.       {
  710.          this._oElements.aEvents.push({func:_loc4_.func,scope:_loc4_.scope,args:_loc4_.args,skipLevel:_loc4_.skipLevel});
  711.       }
  712.       this._oTemps.afl += this._oElements.aEvents.length - _loc23_;
  713.       false;
  714.       return undefined;
  715.    }
  716.    function doTweens(targs, defaultScope, defaultSeconds, defaultEase, setStart, isFF)
  717.    {
  718.       if(this._aTweens == null)
  719.       {
  720.          this._aTweens = [];
  721.       }
  722.       var tba = this._oTwBeingAdded = {};
  723.       var ZE = com.mosesSupposes.fuse.FuseItem._ZigoEngine;
  724.       var _loc33_ = function(target, props, endvals, seconds, ease, delay, callback)
  725.       {
  726.          if(target.__zigoID__ == null)
  727.          {
  728.             ZE.initializeTargets(target);
  729.          }
  730.          tba[target.__zigoID__] = true;
  731.          var _loc3_ = ZE.doTween.apply(ZE,arguments);
  732.          tba[target.__zigoID__] = false;
  733.          return _loc3_ != null ? _loc3_.split(",") : [];
  734.       };
  735.       var _loc71_ = _global.com.mosesSupposes.fuse.Fuse;
  736.       var _loc19_ = _loc71_ == undefined ? com.mosesSupposes.fuse.FuseItem._ZigoEngine.OUTPUT_LEVEL : _loc71_.OUTPUT_LEVEL;
  737.       var _loc23_ = "";
  738.       var _loc64_ = 0;
  739.       var _loc7_ = undefined;
  740.       var _loc8_ = undefined;
  741.       var _loc5_ = undefined;
  742.       var _loc72_ = this._bStartSet != true && (setStart == true || this._sImage.indexOf("StartProps:") > -1);
  743.       var _loc48_ = 0;
  744.       while(_loc48_ < this._aProfiles.length)
  745.       {
  746.          if(this._nPlaying < 2)
  747.          {
  748.             return null;
  749.          }
  750.          var _loc4_ = this._aProfiles[_loc48_];
  751.          if(_loc4_.__buildMode == true)
  752.          {
  753.             var _loc9_ = this._aProfiles[_loc48_].tweenargs;
  754.             var _loc63_ = _loc23_;
  755.             if(_loc9_[6].cycles === 0 || _loc9_[6].cycles.toUpperCase() == "LOOP")
  756.             {
  757.                delete _loc9_[6].cycles;
  758.                if(_loc19_ > 0)
  759.                {
  760.                   com.mosesSupposes.fuse.FuseKitCommon.error("117",this._sID());
  761.                }
  762.             }
  763.             var _loc58_ = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(_loc9_[6]);
  764.             if(!(_loc9_[0] instanceof Array))
  765.             {
  766.                _loc9_[0] = [_loc9_[0]];
  767.             }
  768.             for(_loc7_ in _loc9_[0])
  769.             {
  770.                if(isFF == true)
  771.                {
  772.                   _loc33_(_loc9_[0][_loc7_],_loc9_[1],_loc9_[2],0,null,0,{skipLevel:0});
  773.                   if(_loc19_ == 3)
  774.                   {
  775.                      com.mosesSupposes.fuse.FuseKitCommon.output("\n-" + this._sID() + " FF(simple syntax)\ttargets:[" + _loc9_[0][_loc7_] + "]\tprops:[" + _loc9_[1] + "]");
  776.                   }
  777.                }
  778.                else
  779.                {
  780.                   var _loc15_ = _loc33_(_loc9_[0][_loc7_],_loc9_[1],_loc9_[2],_loc9_[3],_loc9_[4],_loc9_[5],_loc58_);
  781.                   if(_loc15_.length > 0)
  782.                   {
  783.                      this._aTweens.push({targ:_loc9_[0][_loc7_],props:_loc15_,targZID:_loc9_[0][_loc7_].__zigoID__});
  784.                      _loc9_[0][_loc7_].addListener(this);
  785.                      for(_loc8_ in _loc15_)
  786.                      {
  787.                         if(_loc23_.indexOf(_loc15_[_loc8_] + ",") == -1)
  788.                         {
  789.                            _loc23_ += _loc15_[_loc8_] + ",";
  790.                         }
  791.                      }
  792.                   }
  793.                   if(_loc19_ == 3)
  794.                   {
  795.                      com.mosesSupposes.fuse.FuseKitCommon.output("\n-" + this._sID() + " TWEEN(simple syntax)\ttargets:[" + _loc9_[0][_loc7_] + "]\tprops tweened:[" + _loc15_.toString() + "]");
  796.                   }
  797.                }
  798.             }
  799.             if(isFF == false && (_loc63_ == _loc23_ || _loc23_ == ""))
  800.             {
  801.                _loc64_ = _loc64_ + 1;
  802.             }
  803.          }
  804.          else
  805.          {
  806.             var _loc21_ = defaultScope;
  807.             var _loc14_ = [];
  808.             var _loc49_ = _loc4_.target != undefined ? _loc4_.target : targs;
  809.             var _loc25_ = [];
  810.             var _loc51_ = false;
  811.             for(_loc7_ in _loc49_)
  812.             {
  813.                var _loc6_ = _loc49_[_loc7_];
  814.                _loc25_ = _loc25_.concat(!(_loc6_ instanceof Function) ? _loc6_ : _loc6_.apply(_loc21_));
  815.             }
  816.             for(_loc7_ in _loc4_.addTarget)
  817.             {
  818.                _loc6_ = _loc4_.addTarget[_loc7_];
  819.                _loc25_ = _loc25_.concat(!(_loc6_ instanceof Function) ? _loc6_ : _loc6_.apply(_loc21_));
  820.             }
  821.             for(_loc7_ in _loc25_)
  822.             {
  823.                _loc6_ = _loc25_[_loc7_];
  824.                if(_loc6_ != null)
  825.                {
  826.                   var _loc37_ = false;
  827.                   for(_loc8_ in _loc14_)
  828.                   {
  829.                      if(_loc14_[_loc8_] == _loc6_)
  830.                      {
  831.                         _loc37_ = true;
  832.                         break;
  833.                      }
  834.                   }
  835.                   if(_loc37_ == false)
  836.                   {
  837.                      _loc14_.unshift(_loc6_);
  838.                   }
  839.                }
  840.                else
  841.                {
  842.                   _loc51_ = true;
  843.                }
  844.             }
  845.             var _loc53_ = _loc4_._doTimer == true && _loc14_.length == 0 && isFF == false;
  846.             if(_loc51_ == true || _loc14_.length == 0 && _loc4_._doTimer != true)
  847.             {
  848.                _loc64_ = _loc64_ + 1;
  849.             }
  850.             if(_loc72_ == true)
  851.             {
  852.                for(_loc7_ in _loc14_)
  853.                {
  854.                   if(this._nPlaying < 2)
  855.                   {
  856.                      return null;
  857.                   }
  858.                   var _loc34_ = _loc14_[_loc7_];
  859.                   var _loc32_ = [];
  860.                   var _loc26_ = [];
  861.                   if(setStart == true)
  862.                   {
  863.                      for(var _loc61_ in _loc4_.oEP)
  864.                      {
  865.                         _global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(_loc34_,_loc61_,true);
  866.                      }
  867.                   }
  868.                   for(var _loc62_ in _loc4_.oSP)
  869.                   {
  870.                      _loc6_ = _loc4_.oSP[_loc62_];
  871.                      if(_loc6_ instanceof Function)
  872.                      {
  873.                         _loc6_ = _loc6_.apply(_loc21_);
  874.                      }
  875.                      if(_loc6_ === true || _loc6_ === false)
  876.                      {
  877.                         _loc34_[_loc62_] = _loc6_;
  878.                         if(_loc4_.oAFV[_loc62_] == true)
  879.                         {
  880.                            for(_loc5_ in _loc4_.oEP[_loc62_])
  881.                            {
  882.                               if(_loc4_.oEP[_loc62_][_loc5_].targ == _loc34_)
  883.                               {
  884.                                  _loc4_.oEP[_loc62_].splice(Number(_loc5_),1);
  885.                               }
  886.                            }
  887.                            _loc4_.oEP[_loc62_].push({targ:_loc34_,val:"IGNORE",_isAF:true});
  888.                         }
  889.                      }
  890.                      else
  891.                      {
  892.                         if(_loc4_.oAFV[_loc62_] == true && !(_loc62_ == "_colorReset" && _loc6_ == 100) && !(_loc62_ == "_tintPercent" && _loc6_ == 0))
  893.                         {
  894.                            var _loc17_ = undefined;
  895.                            if(_loc62_ == "_tint" || _loc62_ == "_colorTransform")
  896.                            {
  897.                               _loc17_ = com.mosesSupposes.fuse.FuseItem._ZigoEngine.getColorTransObj();
  898.                            }
  899.                            else if(String(com.mosesSupposes.fuse.FuseKitCommon._resetTo100()).indexOf("|" + _loc62_ + "|") > -1 || _loc62_ == "_fade" && _loc6_ < 50)
  900.                            {
  901.                               _loc17_ = 100;
  902.                            }
  903.                            else if(String(com.mosesSupposes.fuse.FuseKitCommon._resetTo0()).indexOf("|" + _loc62_ + "|") > -1 || _loc62_ == "_fade")
  904.                            {
  905.                               _loc17_ = 0;
  906.                            }
  907.                            else
  908.                            {
  909.                               var _loc28_ = _global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(_loc34_,_loc62_,true);
  910.                               if(_loc28_ != null)
  911.                               {
  912.                                  _loc17_ = _loc28_;
  913.                               }
  914.                               else
  915.                               {
  916.                                  _loc17_ = _global.isNaN(_loc34_[_loc62_]) != false ? 0 : _loc34_[_loc62_];
  917.                               }
  918.                            }
  919.                            for(_loc5_ in _loc4_.oEP[_loc62_])
  920.                            {
  921.                               if(_loc4_.oEP[_loc62_][_loc5_].targ == _loc34_)
  922.                               {
  923.                                  _loc4_.oEP[_loc62_].splice(Number(_loc5_),1);
  924.                               }
  925.                            }
  926.                            _loc4_.oEP[_loc62_].push({targ:_loc34_,val:_loc17_,_isAF:true});
  927.                         }
  928.                         if(typeof _loc6_ == "object")
  929.                         {
  930.                            var _loc27_ = !(_loc6_ instanceof Array) ? {} : [];
  931.                            for(_loc5_ in _loc6_)
  932.                            {
  933.                               _loc27_[_loc5_] = !(_loc6_[_loc5_] instanceof Function) ? _loc6_[_loc5_] : Function(_loc6_[_loc5_]).apply(_loc21_);
  934.                            }
  935.                            _loc6_ = _loc27_;
  936.                         }
  937.                         _loc32_.push(_loc62_);
  938.                         _loc26_.push(_loc6_);
  939.                      }
  940.                   }
  941.                   if(_loc26_.length > 0)
  942.                   {
  943.                      if(_loc19_ == 3)
  944.                      {
  945.                         com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " " + _loc34_ + " SET STARTS: " + ["[" + _loc32_ + "]","[" + _loc26_ + "]"]);
  946.                      }
  947.                      _loc33_(_loc34_,_loc32_,_loc26_,0);
  948.                   }
  949.                }
  950.             }
  951.             if(setStart != true)
  952.             {
  953.                var _loc24_ = undefined;
  954.                var _loc47_ = undefined;
  955.                var _loc31_ = undefined;
  956.                var _loc10_ = undefined;
  957.                var _loc46_ = undefined;
  958.                var _loc18_ = undefined;
  959.                var _loc40_ = "";
  960.                if(isFF == false)
  961.                {
  962.                   if(_loc4_.scope != undefined)
  963.                   {
  964.                      _loc21_ = _loc4_.scope;
  965.                   }
  966.                   _loc47_ = !(_loc4_.skipLevel instanceof Function) ? _loc4_.skipLevel : _loc4_.skipLevel.apply(_loc21_);
  967.                   var _loc68_ = !(_loc4_.extra1 instanceof Function) ? _loc4_.extra1 : _loc4_.extra1.apply(_loc21_);
  968.                   var _loc67_ = !(_loc4_.extra2 instanceof Function) ? _loc4_.extra2 : _loc4_.extra2.apply(_loc21_);
  969.                   var _loc69_ = !(_loc4_.roundResults instanceof Function) ? _loc4_.roundResults : _loc4_.roundResults.apply(_loc21_);
  970.                   _loc31_ = {skipLevel:_loc47_,extra1:_loc68_,extra2:_loc67_,roundResults:_loc69_};
  971.                   _loc10_ = {skipLevel:_loc47_,extra1:_loc68_,extra2:_loc67_,roundResults:_loc69_};
  972.                   if(_loc4_.cycles != undefined)
  973.                   {
  974.                      var _loc52_ = !(_loc4_.cycles instanceof Function) ? _loc4_.cycles : _loc4_.cycles.apply(_loc21_);
  975.                      if((Number(_loc52_) == 0 || String(_loc52_).toUpperCase() == "LOOP") && _loc71_ != undefined)
  976.                      {
  977.                         delete _loc4_.cycles;
  978.                         if(_loc19_ > 0)
  979.                         {
  980.                            com.mosesSupposes.fuse.FuseKitCommon.error("117",this._sID());
  981.                         }
  982.                      }
  983.                      else
  984.                      {
  985.                         _loc31_.cycles = _loc10_.cycles = _loc52_;
  986.                      }
  987.                   }
  988.                   if(_loc4_.func != undefined || _loc4_.startfunc != undefined || _loc4_.updfunc != undefined)
  989.                   {
  990.                      for(_loc7_ in _loc4_)
  991.                      {
  992.                         if(_loc7_.indexOf("func") > -1)
  993.                         {
  994.                            _loc10_[_loc7_] = _loc4_[_loc7_];
  995.                         }
  996.                         else if(_loc7_ == "startscope" || _loc7_ == "updscope" || _loc7_.indexOf("args") > -1)
  997.                         {
  998.                            _loc10_[_loc7_] = _loc4_[_loc7_];
  999.                         }
  1000.                      }
  1001.                      if(_loc21_ != undefined)
  1002.                      {
  1003.                         if(_loc10_.func != undefined && _loc10_.scope == undefined)
  1004.                         {
  1005.                            _loc10_.scope = _loc21_;
  1006.                         }
  1007.                         if(_loc10_.updfunc != undefined && _loc10_.updscope == undefined)
  1008.                         {
  1009.                            _loc10_.updscope = _loc21_;
  1010.                         }
  1011.                         if(_loc10_.startfunc != undefined && _loc10_.startscope == undefined)
  1012.                         {
  1013.                            _loc10_.startscope = _loc21_;
  1014.                         }
  1015.                      }
  1016.                   }
  1017.                   for(_loc8_ in _loc10_)
  1018.                   {
  1019.                      _loc40_ += _loc8_ + ":" + _loc10_[_loc8_] + "|";
  1020.                   }
  1021.                   if(_loc4_.event != undefined)
  1022.                   {
  1023.                      _loc24_ = {scope:_loc4_.scope,e:_loc4_.event,ep:_loc4_.eventparams,skipLevel:_loc47_};
  1024.                   }
  1025.                   _loc46_ = _loc4_.trigger === true;
  1026.                   _loc18_ = undefined;
  1027.                   if(_loc46_ == false && _loc4_.trigger != undefined)
  1028.                   {
  1029.                      _loc18_ = !(_loc4_.trigger instanceof Function) ? _loc4_.trigger : _loc4_.trigger.apply(_loc21_);
  1030.                      if(typeof _loc18_ == "string")
  1031.                      {
  1032.                         _loc18_ = String(_loc18_).charAt(0) != "-" ? this.parseClock(String(_loc18_)) : - this.parseClock(String(_loc18_).slice(1));
  1033.                      }
  1034.                      if(_global.isNaN(_loc18_) == true)
  1035.                      {
  1036.                         _loc18_ = undefined;
  1037.                      }
  1038.                   }
  1039.                }
  1040.                var _loc16_ = undefined;
  1041.                var _loc13_ = undefined;
  1042.                var _loc20_ = undefined;
  1043.                var _loc11_ = undefined;
  1044.                var _loc39_ = false;
  1045.                var _loc50_ = _loc53_ != false ? [0] : _loc14_;
  1046.                for(_loc7_ in _loc50_)
  1047.                {
  1048.                   if(this._nPlaying < 2)
  1049.                   {
  1050.                      return null;
  1051.                   }
  1052.                   if(isFF == false)
  1053.                   {
  1054.                      if(_loc4_.ease != null)
  1055.                      {
  1056.                         _loc20_ = _loc4_.ease;
  1057.                         if(_loc20_ instanceof Function)
  1058.                         {
  1059.                            var _loc41_ = Function(_loc20_);
  1060.                            if(typeof _loc41_(1,1,1,1) != "number")
  1061.                            {
  1062.                               _loc20_ = _loc41_.apply(_loc21_);
  1063.                            }
  1064.                         }
  1065.                      }
  1066.                      if(_loc20_ == null)
  1067.                      {
  1068.                         _loc20_ = defaultEase;
  1069.                      }
  1070.                      if(_loc4_.seconds != null)
  1071.                      {
  1072.                         _loc13_ = !(_loc4_.seconds instanceof Function) ? _loc4_.seconds : _loc4_.seconds.apply(_loc21_);
  1073.                         if(typeof _loc13_ == "string")
  1074.                         {
  1075.                            _loc13_ = this.parseClock(String(_loc13_));
  1076.                         }
  1077.                      }
  1078.                      if(_global.isNaN(_loc13_) == true)
  1079.                      {
  1080.                         _loc13_ = _global.isNaN(defaultSeconds) != false ? com.mosesSupposes.fuse.FuseItem._ZigoEngine.DURATION || 0 : defaultSeconds;
  1081.                      }
  1082.                      _loc16_ = !(_loc4_.delay instanceof Function) ? _loc4_.delay : _loc4_.delay.apply(_loc21_);
  1083.                      if(typeof _loc16_ == "string")
  1084.                      {
  1085.                         _loc16_ = this.parseClock(String(_loc16_));
  1086.                      }
  1087.                      if(_loc16_ == null || _global.isNaN(_loc16_) == true)
  1088.                      {
  1089.                         _loc16_ = 0;
  1090.                      }
  1091.                      if(_loc53_ == true)
  1092.                      {
  1093.                         continue;
  1094.                      }
  1095.                   }
  1096.                   _loc34_ = _loc50_[_loc7_];
  1097.                   var _loc22_ = [];
  1098.                   var _loc12_ = [];
  1099.                   var _loc43_ = 0;
  1100.                   for(_loc62_ in _loc4_.oEP)
  1101.                   {
  1102.                      _loc6_ = _loc4_.oEP[_loc62_];
  1103.                      if(_loc6_ instanceof Function)
  1104.                      {
  1105.                         _loc6_ = _loc6_.apply(_loc21_);
  1106.                      }
  1107.                      if(_loc6_ === true || _loc6_ === false)
  1108.                      {
  1109.                         if(_loc11_ == undefined)
  1110.                         {
  1111.                            _loc11_ = {};
  1112.                         }
  1113.                         _loc11_[_loc62_] = _loc6_;
  1114.                         _loc43_ = _loc43_ + 1;
  1115.                      }
  1116.                      else
  1117.                      {
  1118.                         if(typeof _loc6_ == "object")
  1119.                         {
  1120.                            if(_loc6_[0]._isAF == true)
  1121.                            {
  1122.                               for(_loc5_ in _loc6_)
  1123.                               {
  1124.                                  if(_loc6_[_loc5_].targ == _loc34_)
  1125.                                  {
  1126.                                     _loc6_ = _loc6_[_loc5_].val;
  1127.                                     break;
  1128.                                  }
  1129.                               }
  1130.                            }
  1131.                            else
  1132.                            {
  1133.                               _loc27_ = !(_loc6_ instanceof Array) ? {} : [];
  1134.                               for(_loc5_ in _loc6_)
  1135.                               {
  1136.                                  _loc27_[_loc5_] = !(_loc6_[_loc5_] instanceof Function) ? _loc6_[_loc5_] : Function(_loc6_[_loc5_]).apply(_loc21_);
  1137.                               }
  1138.                               _loc6_ = _loc27_;
  1139.                            }
  1140.                         }
  1141.                         if(_loc6_ != "IGNORE")
  1142.                         {
  1143.                            _loc22_.push(_loc62_);
  1144.                            _loc12_.push(_loc6_);
  1145.                         }
  1146.                      }
  1147.                   }
  1148.                   if(isFF == true)
  1149.                   {
  1150.                      if(_loc19_ == 3)
  1151.                      {
  1152.                         com.mosesSupposes.fuse.FuseKitCommon.output("\n-" + this._sID() + " FF\ttargets:[" + _loc34_ + "]\tprops:[" + _loc22_.toString() + "]");
  1153.                      }
  1154.                      _loc33_(_loc34_,_loc22_,_loc12_,0,null,0,{skipLevel:0});
  1155.                   }
  1156.                   else if(_loc12_.length > 0)
  1157.                   {
  1158.                      var _loc30_ = {caught:false,onTweenEnd:function(evto)
  1159.                      {
  1160.                         this.caught = true;
  1161.                      }};
  1162.                      _loc34_.addListener(_loc30_);
  1163.                      _loc15_ = _loc33_(_loc34_,_loc22_,_loc12_,_loc13_,_loc20_,_loc16_,_loc10_);
  1164.                      _loc34_.removeListener(_loc30_);
  1165.                      if(_loc15_.length == 0)
  1166.                      {
  1167.                         if(_loc30_.caught == true)
  1168.                         {
  1169.                            _loc10_ = _loc31_;
  1170.                         }
  1171.                      }
  1172.                      else
  1173.                      {
  1174.                         if(_loc15_.length > 0)
  1175.                         {
  1176.                            var _loc35_ = {targ:_loc34_,props:_loc15_,bools:_loc11_,targZID:_loc34_.__zigoID__};
  1177.                            if(_loc39_ == false)
  1178.                            {
  1179.                               _loc10_ = _loc31_;
  1180.                               _loc35_.event = _loc24_;
  1181.                               _loc24_ = _loc11_ = undefined;
  1182.                               _loc35_.trigger = _loc46_;
  1183.                            }
  1184.                            this._aTweens.push(_loc35_);
  1185.                            _loc34_.addListener(this);
  1186.                            _loc39_ = true;
  1187.                            for(_loc8_ in _loc15_)
  1188.                            {
  1189.                               if(_loc23_.indexOf(_loc15_[_loc8_] + ",") == -1)
  1190.                               {
  1191.                                  _loc23_ += _loc15_[_loc8_] + ",";
  1192.                               }
  1193.                            }
  1194.                         }
  1195.                         if(_loc19_ == 3)
  1196.                         {
  1197.                            var _loc42_ = _loc22_.toString();
  1198.                            if(_loc15_.length > _loc22_.length)
  1199.                            {
  1200.                               _loc42_ += "\n\t[NO-CHANGE PROPS DISCARDED (disregard this for double props like _scale). KEPT:" + _loc15_.toString() + "]";
  1201.                            }
  1202.                            var _loc29_ = "";
  1203.                            for(_loc8_ in _loc12_)
  1204.                            {
  1205.                               _loc29_ = (typeof _loc12_[_loc8_] != "string" ? _loc12_[_loc8_] : "\"" + _loc12_[_loc8_] + "\"") + ", " + _loc29_;
  1206.                            }
  1207.                            com.mosesSupposes.fuse.FuseKitCommon.output("\n-" + this._sID() + " TWEEN:\n" + ["\t[getTimer():" + getTimer() + "] ","targ: " + _loc34_,"props: " + _loc42_,"endVals: " + _loc29_,"time: " + (_loc13_ != undefined ? _loc13_ : com.mosesSupposes.fuse.FuseItem._ZigoEngine.DURATION),"easing: " + (_loc20_ != undefined ? _loc20_ : com.mosesSupposes.fuse.FuseItem._ZigoEngine.EASING),"delay: " + (_loc16_ != undefined ? _loc16_ : 0),"callbacks: " + (_loc40_ != "" ? _loc40_ : "(none)")].join("\n\t"));
  1208.                         }
  1209.                      }
  1210.                      _loc30_ = undefined;
  1211.                   }
  1212.                }
  1213.                if(_loc13_ == undefined || _global.isNaN(_loc13_) == true)
  1214.                {
  1215.                   _loc13_ = 0;
  1216.                }
  1217.                var _loc36_ = _loc16_ + _loc13_;
  1218.                if(_loc18_ != undefined)
  1219.                {
  1220.                   if(_loc18_ < 0)
  1221.                   {
  1222.                      _loc18_ += _loc36_;
  1223.                   }
  1224.                   if(_loc18_ > 0 && (_loc36_ == 0 || _loc18_ < _loc36_))
  1225.                   {
  1226.                      if(_loc36_ == 0)
  1227.                      {
  1228.                         if(_loc19_ == 3)
  1229.                         {
  1230.                            com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " graft a timed trigger (" + _loc18_ + " sec). [has callback:" + (_loc10_ != _loc31_) + ", has event:" + (_loc24_ != undefined) + ", has booleans:" + (_loc11_ != undefined) + "]");
  1231.                         }
  1232.                         this.doTimerTween(null,_loc18_,0,true,_loc11_,_loc10_,_loc24_);
  1233.                         _loc39_ = true;
  1234.                      }
  1235.                      else
  1236.                      {
  1237.                         if(_loc19_ == 3)
  1238.                         {
  1239.                            com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " graft a timed trigger (" + _loc18_ + " sec).");
  1240.                         }
  1241.                         this.doTimerTween(null,_loc18_,0,true);
  1242.                      }
  1243.                   }
  1244.                   else if(_loc19_ == 3)
  1245.                   {
  1246.                      com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " timed trigger discarded: out of range. [" + _loc18_ + "/" + _loc36_ + "]");
  1247.                   }
  1248.                }
  1249.                if(_loc39_ == false && (_loc10_ != _loc31_ || _loc24_ != undefined || _loc11_ != undefined))
  1250.                {
  1251.                   if(_loc47_ == 0 && _loc36_ > 0)
  1252.                   {
  1253.                      if(_loc19_ == 3)
  1254.                      {
  1255.                         com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " no props tweened - graft a delay (" + _loc36_ + " sec). [has callback:" + (_loc10_ != _loc31_) + ", has event:" + (_loc24_ != undefined) + ", has booleans:" + (_loc11_ != undefined) + "]");
  1256.                      }
  1257.                      this.doTimerTween(_loc14_,_loc13_,_loc16_,_loc46_,_loc11_,_loc10_,_loc24_);
  1258.                   }
  1259.                   else
  1260.                   {
  1261.                      if(_loc19_ == 3)
  1262.                      {
  1263.                         com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " no props tweened, executing nontween items. [has callback:" + (_loc10_ != _loc31_) + ", has event:" + (_loc24_ != undefined) + ", has booleans:" + (_loc11_ != undefined) + "]");
  1264.                      }
  1265.                      for(_loc7_ in _loc14_)
  1266.                      {
  1267.                         for(_loc8_ in _loc11_)
  1268.                         {
  1269.                            _loc14_[_loc7_][_loc8_] = _loc11_[_loc8_];
  1270.                         }
  1271.                      }
  1272.                      if(_loc47_ < 2)
  1273.                      {
  1274.                         if(_loc10_ != undefined)
  1275.                         {
  1276.                            this.fireEvents(_loc10_,_loc21_,_loc19_,_loc14_);
  1277.                         }
  1278.                         if(_loc24_ != undefined)
  1279.                         {
  1280.                            this.fireEvents(_loc24_,_loc21_,_loc19_);
  1281.                         }
  1282.                      }
  1283.                   }
  1284.                }
  1285.             }
  1286.          }
  1287.          _loc48_ = _loc48_ + 1;
  1288.       }
  1289.       if(_loc64_ > 0 && _loc19_ > 0)
  1290.       {
  1291.          if(_loc64_ == this._aProfiles.length && _loc23_ == "")
  1292.          {
  1293.             com.mosesSupposes.fuse.FuseKitCommon.error("118",this._sID(),setStart);
  1294.          }
  1295.          else
  1296.          {
  1297.             com.mosesSupposes.fuse.FuseKitCommon.error("119",this._sID(),_loc64_,_loc72_);
  1298.          }
  1299.       }
  1300.       tba = undefined;
  1301.       this._oTwBeingAdded = undefined;
  1302.       return _loc23_ != "" ? _loc23_.slice(0,-1) : null;
  1303.    }
  1304.    function doTimerTween(actualTargets, duration, delay, trigger, booleans, callback, event)
  1305.    {
  1306.       var _loc2_ = {__TweenedDelay:0};
  1307.       com.mosesSupposes.fuse.FuseItem._ZigoEngine.initializeTargets(_loc2_);
  1308.       this._aTweens.push({targ:_loc2_,props:["__TweenedDelay"],trigger:trigger,bools:booleans,event:event,actualTargs:actualTargets,targZID:_loc2_.__zigoID__});
  1309.       var _loc3_ = com.mosesSupposes.fuse.FuseItem._ZigoEngine.doTween(_loc2_,"__TweenedDelay",1,duration,null,delay,callback) == null;
  1310.       if(_loc3_ == true)
  1311.       {
  1312.          this.onTweenEnd({target:_loc2_,props:["__TweenedDelay"]});
  1313.       }
  1314.       else
  1315.       {
  1316.          _loc2_.addListener(this);
  1317.       }
  1318.    }
  1319.    function onTweenEnd(o, doAutoStop)
  1320.    {
  1321.       if(this._nPlaying < 1)
  1322.       {
  1323.          return undefined;
  1324.       }
  1325.       var _loc12_ = _global.com.mosesSupposes.fuse.Fuse;
  1326.       var _loc8_ = _loc12_ == undefined ? com.mosesSupposes.fuse.FuseItem._ZigoEngine.OUTPUT_LEVEL : _loc12_.OUTPUT_LEVEL;
  1327.       var _loc11_ = o.__zigoID__ === undefined ? o.target.__zigoID__ : o.__zigoID__;
  1328.       for(var _loc19_ in this._aTweens)
  1329.       {
  1330.          var _loc3_ = this._aTweens[_loc19_];
  1331.          if(_loc3_.targZID == _loc11_)
  1332.          {
  1333.             for(var _loc18_ in o.props)
  1334.             {
  1335.                var _loc7_ = _loc3_.props;
  1336.                for(var _loc16_ in _loc7_)
  1337.                {
  1338.                   var _loc5_ = _loc7_[_loc16_];
  1339.                   if(_loc5_ == o.props[_loc18_])
  1340.                   {
  1341.                      _loc7_.splice(Number(_loc16_),1);
  1342.                      if(doAutoStop == true)
  1343.                      {
  1344.                         var _loc6_ = _loc12_.getInstance(this._nFuseID);
  1345.                         var _loc10_ = this._bTrigger == true && o.during == "add" && _loc6_[_loc6_.currentIndex]._oTwBeingAdded[_loc11_] === true && _loc6_.state == "playing";
  1346.                         if(_loc10_ == false)
  1347.                         {
  1348.                            _loc3_.targ.removeListener(this);
  1349.                            for(_loc19_ in this._aTweens)
  1350.                            {
  1351.                               if(this._aTweens[_loc19_].targZID == _loc11_)
  1352.                               {
  1353.                                  for(_loc18_ in o.props)
  1354.                                  {
  1355.                                     for(_loc16_ in this._aTweens[_loc19_].props)
  1356.                                     {
  1357.                                        if(this._aTweens[_loc19_].props[_loc16_] == o.props[_loc18_])
  1358.                                        {
  1359.                                           this._aTweens[_loc19_].props.splice(Number(_loc16_),1);
  1360.                                        }
  1361.                                     }
  1362.                                  }
  1363.                                  if(this._aTweens[_loc19_].props.length == 0)
  1364.                                  {
  1365.                                     this._aTweens.splice(Number(_loc19_),1);
  1366.                                  }
  1367.                               }
  1368.                            }
  1369.                            if(_loc8_ == 3)
  1370.                            {
  1371.                               com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " triggering auto-stop due to interruption");
  1372.                            }
  1373.                            if(_loc6_.autoClear == true || _loc6_.autoClear !== false && _loc12_.AUTOCLEAR == true)
  1374.                            {
  1375.                               this.dispatchRequest("destroy");
  1376.                            }
  1377.                            this.dispatchRequest("stop");
  1378.                            return undefined;
  1379.                         }
  1380.                         if(_loc8_ == 3)
  1381.                         {
  1382.                            com.mosesSupposes.fuse.FuseKitCommon.output("note -" + this._sID() + " interrupted one of its own properties \"" + _loc5_ + "\". (Autostop not triggered.)");
  1383.                         }
  1384.                      }
  1385.                      if(this._nPlaying == 2 && _loc5_ != "__TweenedDelay")
  1386.                      {
  1387.                         if(_loc8_ > 0)
  1388.                         {
  1389.                            com.mosesSupposes.fuse.FuseKitCommon.error("120",this._sID(),_loc5_);
  1390.                         }
  1391.                      }
  1392.                      if(_loc7_.length == 0)
  1393.                      {
  1394.                         if(_loc3_.event != undefined)
  1395.                         {
  1396.                            this.fireEvents(_loc3_.event,null,_loc8_);
  1397.                         }
  1398.                         if(_loc5_ == "__TweenedDelay")
  1399.                         {
  1400.                            com.mosesSupposes.fuse.FuseItem._ZigoEngine.deinitializeTargets(_loc3_.targ);
  1401.                            delete _loc3_.targ;
  1402.                            for(var _loc14_ in _loc3_.bools)
  1403.                            {
  1404.                               for(var _loc13_ in _loc3_.actualTargs)
  1405.                               {
  1406.                                  _loc3_.actualTargs[_loc13_][_loc14_] = _loc3_.bools[_loc14_];
  1407.                               }
  1408.                            }
  1409.                         }
  1410.                         else
  1411.                         {
  1412.                            var _loc9_ = false;
  1413.                            for(_loc14_ in _loc3_.bools)
  1414.                            {
  1415.                               _loc3_.targ[_loc14_] = _loc3_.bools[_loc14_];
  1416.                            }
  1417.                            for(var _loc15_ in this._aTweens)
  1418.                            {
  1419.                               if(_loc15_ != _loc19_ && this._aTweens[_loc15_].targ == _loc3_.targ)
  1420.                               {
  1421.                                  _loc9_ = true;
  1422.                               }
  1423.                            }
  1424.                            if(_loc9_ == false)
  1425.                            {
  1426.                               _loc3_.targ.removeListener(this);
  1427.                            }
  1428.                         }
  1429.                         if(_loc3_.trigger == true)
  1430.                         {
  1431.                            if(this._bTrigger == false && o.isResume != true && this._aTweens.length > 1)
  1432.                            {
  1433.                               this._bTrigger = true;
  1434.                               if(_loc8_ == 3)
  1435.                               {
  1436.                                  com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " trigger fired!");
  1437.                               }
  1438.                               var breakChainInt;
  1439.                               breakChainInt = setInterval(function(fi)
  1440.                               {
  1441.                                  clearInterval(breakChainInt);
  1442.                                  fi.dispatchRequest("advance",[false,false,false]);
  1443.                               }
  1444.                               ,1,this);
  1445.                            }
  1446.                         }
  1447.                         this._aTweens.splice(Number(_loc19_),1);
  1448.                      }
  1449.                   }
  1450.                }
  1451.             }
  1452.          }
  1453.       }
  1454.       if(this._aTweens.length == 0 && this._nPlaying == 1 && o.isResume != true)
  1455.       {
  1456.          this.complete(_loc8_);
  1457.       }
  1458.    }
  1459.    function onTweenInterrupt(o)
  1460.    {
  1461.       if(this._nPlaying == -1)
  1462.       {
  1463.          return undefined;
  1464.       }
  1465.       var _loc4_ = _global.com.mosesSupposes.fuse.Fuse;
  1466.       var _loc6_ = _loc4_.getInstance(this._nFuseID);
  1467.       var _loc8_ = _loc6_.autoStop == true || _loc6_.autoStop !== false && _loc4_.AUTOSTOP == true;
  1468.       var _loc3_ = o.__zigoID__;
  1469.       var _loc9_ = _loc4_ == undefined ? com.mosesSupposes.fuse.FuseItem._ZigoEngine.OUTPUT_LEVEL : _loc4_.OUTPUT_LEVEL;
  1470.       if(_loc8_ == true || _loc8_ !== false && _loc4_.AUTOSTOP == true)
  1471.       {
  1472.          this.onTweenEnd(o,true);
  1473.          return undefined;
  1474.       }
  1475.       if(typeof o.target != "string")
  1476.       {
  1477.          this.onTweenEnd(o);
  1478.          return undefined;
  1479.       }
  1480.       for(var _loc5_ in this._aTweens)
  1481.       {
  1482.          if(this._aTweens[_loc5_].targZID == _loc3_)
  1483.          {
  1484.             this._aTweens.splice(Number(_loc5_),1);
  1485.          }
  1486.       }
  1487.       if(this._aTweens.length == 0 && this._nPlaying == 1)
  1488.       {
  1489.          this.complete(_loc9_);
  1490.       }
  1491.    }
  1492.    function complete(outputLevel)
  1493.    {
  1494.       var trigger = this._bTrigger;
  1495.       this.stop();
  1496.       if(trigger != true)
  1497.       {
  1498.          if(outputLevel == 3)
  1499.          {
  1500.             com.mosesSupposes.fuse.FuseKitCommon.output(this._sID() + " complete.");
  1501.          }
  1502.       }
  1503.       var breakChainInt;
  1504.       breakChainInt = setInterval(function(fi)
  1505.       {
  1506.          clearInterval(breakChainInt);
  1507.          fi.dispatchRequest("advance",[trigger,false,false]);
  1508.       }
  1509.       ,1,this);
  1510.    }
  1511.    function parseClock(str)
  1512.    {
  1513.       if(str.indexOf(":") != 2)
  1514.       {
  1515.          com.mosesSupposes.fuse.FuseKitCommon.error("121");
  1516.          return com.mosesSupposes.fuse.FuseItem._ZigoEngine.DURATION || 0;
  1517.       }
  1518.       var _loc4_ = 0;
  1519.       var _loc3_ = str.split(":");
  1520.       _loc3_.reverse();
  1521.       var _loc2_ = undefined;
  1522.       if(String(_loc3_[0]).length == 2 && _global.isNaN(_loc2_ = Math.abs(Number(_loc3_[0]))) == false)
  1523.       {
  1524.          _loc4_ += _loc2_ / 100;
  1525.       }
  1526.       if(String(_loc3_[1]).length == 2 && _global.isNaN(_loc2_ = Math.abs(Number(_loc3_[1]))) == false && _loc2_ < 60)
  1527.       {
  1528.          _loc4_ += _loc2_;
  1529.       }
  1530.       if(String(_loc3_[2]).length == 2 && _global.isNaN(_loc2_ = Math.abs(Number(_loc3_[2]))) == false && _loc2_ < 60)
  1531.       {
  1532.          _loc4_ += _loc2_ * 60;
  1533.       }
  1534.       if(String(_loc3_[3]).length == 2 && _global.isNaN(_loc2_ = Math.abs(Number(_loc3_[3]))) == false && _loc2_ < 24)
  1535.       {
  1536.          _loc4_ += _loc2_ * 3600;
  1537.       }
  1538.       return _loc4_;
  1539.    }
  1540.    function fireEvents(o, scope, outputLevel, targets)
  1541.    {
  1542.       if(o.scope == undefined)
  1543.       {
  1544.          o.scope = scope;
  1545.       }
  1546.       if(o.e == undefined)
  1547.       {
  1548.          var _loc3_ = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(o,targets,outputLevel,false);
  1549.          if(_loc3_.start.f != null)
  1550.          {
  1551.             _loc3_.start.f.apply(_loc3_.start.s,_loc3_.start.a);
  1552.          }
  1553.          if(_loc3_.upd.f != null)
  1554.          {
  1555.             _loc3_.upd.f.apply(_loc3_.upd.s,_loc3_.upd.a);
  1556.          }
  1557.          if(_loc3_.end.f != null)
  1558.          {
  1559.             _loc3_.end.f.apply(_loc3_.end.s,_loc3_.end.a);
  1560.          }
  1561.       }
  1562.       else
  1563.       {
  1564.          var _loc6_ = !(o.e instanceof Function) ? String(o.e) : String(o.e.apply(scope));
  1565.          if(_loc6_ != "undefined" && _loc6_.length > 0)
  1566.          {
  1567.             if(String(com.mosesSupposes.fuse.FuseKitCommon._fuseEvents()).indexOf("|" + _loc6_ + "|") > -1)
  1568.             {
  1569.                if(outputLevel > 0)
  1570.                {
  1571.                   com.mosesSupposes.fuse.FuseKitCommon.error("122",_loc6_);
  1572.                }
  1573.             }
  1574.             else
  1575.             {
  1576.                var _loc7_ = _global.com.mosesSupposes.fuse.Fuse.getInstance(this._nFuseID);
  1577.                var _loc5_ = !(o.ep instanceof Function) ? o.ep : o.ep.apply(scope);
  1578.                if(_loc5_ == null || typeof _loc5_ != "object")
  1579.                {
  1580.                   _loc5_ = {};
  1581.                }
  1582.                _loc5_.target = _loc7_;
  1583.                _loc5_.type = _loc6_;
  1584.                _loc7_.dispatchEvent.call(_loc7_,_loc5_);
  1585.             }
  1586.          }
  1587.          else if(outputLevel > 0)
  1588.          {
  1589.             com.mosesSupposes.fuse.FuseKitCommon.error("123",this._sID());
  1590.          }
  1591.       }
  1592.    }
  1593. }
  1594.